<?php
/* @var $this TermsController */
/* @var $model Terms */

$this->breadcrumbs=array(
	'Terms'=>ApplicationConfig::getURL("user", "terms", "admin",array('id'=>$model->categoryID)),
	$model->termID,
);



$this->menu=array(
	// array('label'=>'List EpisodeDetails','url'=>array('index')),
	array('label'=>'Create Term', 'url'=>ApplicationConfig::getURL("user", "terms", "create",array('id'=>$model->categoryID))),
    array('label'=>'List Terms', 'url'=>ApplicationConfig::getURL("user", "terms", "admin",array('id'=>$model->categoryID))),
   
	);
	
?>
<?php 
if (!empty($_GET['id']))
{
	$categoryObj = Categories::model()->getModel("CATEGORY-ID",array('categoryID'=>$model->categoryID));
	$categoryName = $categoryObj->category_name;
}
else 
$categoryName = "";

?>
<h3>View Terms #<?php echo $categoryName; ?></h3>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'termID',
		'categoryID',
		'term_name',
		'created',
	),
)); ?>
